package com.qding.park.manager.common.rest.enums;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 日志中操作类型
 * 
 * @desc
 * @author shenjialong
 * @date 2014-2-14,上午10:29:50
 */
public enum ResponseCodeEnum {

	SUCESS("成功", 0),

	SYSTEM_ERROR("网络异常，请稍后再试 ", 1000),
	SYSTEM_UNKNOWN_ERROR("系统未知错误",1001),
	
	
	VALIDATION_ERROR("报文验证错误", 2000),
	SIGN_INCORRECT_ERROR("签名不正确", 2001),
	TIMEOUT_TOKEN_ERROR("token超时",2002),
	
	//参数不对
	PARAMETER_ERROR("参数错误", 3000),
	SURPLUS_PARAM_ERROE("多余参数",3001),
	LACK_PARAM_ERROE("缺少参数",3002),

	// 业务数据
	BUSINESS_ERROR("业务错误 ", 4000),
	BUSINESS_CAR_OUT_ERROR("车辆已经出场",4001),
	BUSINESS_CAR_NO_ERROR("无此车牌",4002),
	BUSINESS_USER_NO_ERROR("无此用户",4003),
	
	

	PERMISSION_ERROR("权限错误", 5000),
	SESSION_FAIL("会话失效",5001),
	SESSION_TIMEOUT("会话超时",5002);
	
	

	/** 描述 */
	private String desc;
	/** 枚举值 */
	private int value;

	private ResponseCodeEnum(String desc, int value) {
		this.desc = desc;
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

}
